package com.example.springtest.user.service;

import com.example.springtest.user.pojo.dto.UserDTO;
import com.example.springtest.user.pojo.entity.User;
import com.example.springtest.user.pojo.vo.UserVO;

import org.springframework.stereotype.Service;

@Service
public interface UserService {

    /**
     * 登录
     * @param user
     * @return
     */
    UserVO login(User user);
    //注册
    void register(UserDTO userDTO);

    User getUser(Integer id);

    void deleteUser(Integer id);

    void editUser(Integer id, User user);
}
